package com.lizhen.j2eepattern.businessdelegatepattern;

import com.lizhen.j2eepattern.businessdelegatepattern.impl.EJBService;
import com.lizhen.j2eepattern.businessdelegatepattern.impl.JMSService;

public class BusinessLookUp {
    public BusinessLookUp() {
    }

    public BusinessService getBusinessService(String serviceType) {
        return (BusinessService) (serviceType.equalsIgnoreCase("EJB") ? new EJBService() : new JMSService());
    }
}
